/*
 * @Author: your name
 * @Date: 2021-04-01 14:12:03
 * @LastEditTime: 2021-04-04 16:24:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \shop\training-group-5-warehouse\dianshang\src\mock\live.js
 */
// 直播特卖
const Mock = require("mockjs");
const { data } = require("./liveShop");

const live = Mock.mock({
    data
});

//弹幕数据
const barrage = Mock.mock({
    "list|20": [{
        "id": "@id",
        "avatar|1": [
            "https://img2.baidu.com/it/u=3717120934,3932520698&fm=26&fmt=auto&gp=0.jpg",
            "https://img2.baidu.com/it/u=2590128318,632998727&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=1950846641,3729028697&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=2013128738,1744245349&fm=26&fmt=auto&gp=0.jpg",
            "https://img2.baidu.com/it/u=2026506810,1548839222&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=3782128483,794367969&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=3324287611,3832720410&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=3686156064,2328177349&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=2291332875,175289127&fm=26&fmt=auto&gp=0.jpg",
            "https://img0.baidu.com/it/u=3794211690,3657819196&fm=26&fmt=auto&gp=0.jpg",
            "https://img1.baidu.com/it/u=3321636701,1048971300&fm=26&fmt=auto&gp=0.jpg",
            "https://img1.baidu.com/it/u=1093570909,3602207353&fm=26&fmt=auto&gp=0.jpg"
        ],
        "msg": "@ctitle",
        "time": Math.random() * 9 + 5,
        "barrageStyle|1": ["yellow", "red", "green", "blue"],
    }]
});

//直播间商品列表
const shopList = Mock.mock({
    "list|20": [{
        "id": "@id",
        "title": "@ctitle",
        "img|1": [
            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1958284060,1346852311&fm=26&gp=0.jpg",
            "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1292037560,680173169&fm=224&gp=0.jpg",
            "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3648900530,2184452992&fm=26&gp=0.jpg",
            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1807065476,3521832283&fm=26&gp=0.jpg",
            "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1680622752,1304303761&fm=26&gp=0.jpg",
            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1826449996,1001006521&fm=26&gp=0.jpg",
            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1283777481,2964965780&fm=26&gp=0.jpg",
            "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2759102976,3777734625&fm=26&gp=0.jpg",
            "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3814817910,878631247&fm=26&gp=0.jpg",
            "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1198365207,270224759&fm=224&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3538418452,2966015766&fm=26&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2901394206,1304678994&fm=26&gp=0.jpg",
            "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2357499568,3342476451&fm=26&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=295536446,3788772626&fm=26&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2262006950,1150095680&fm=26&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1949634109,494152779&fm=26&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1946074093,876174843&fm=26&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1400045342,1012799930&fm=26&gp=0.jpg",
            "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3303006039,1750787795&fm=26&gp=0.jpg",
            "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3385875468,2730635891&fm=26&gp=0.jpg"
        ],
        "price|100-10000": 1,
        "soldOut|100-10000": 1,
        "num|1-100": 1,
        "shopnum": 1,
        "flag": false,
        "www": "@ctitle(6,8)",
        "allprice": 0,
    }]
});

module.exports = {
    live: live.data,
    barrage: barrage.list,
    shopList: shopList.list
}